package com.mapTest;


/**
 * @Author weijingchen
 * @Date 2025/6/13 22:21
 * @Version 1.0.0
 */
public class Test02 {
    public static void main(String[] args) {
        int i = test01(1, 2, 3, 3, 4, 5, 6, 7, 8, 9, 10);
        System.out.println(i);
    }
    public static int test01(int a,int... b){
        int sum=a;
        for (int i : b) {
            sum+=i;
        }
        return sum;
    }
}
